#ifndef FTPSESSION_H
#define FTPSESSION_H

#include <QThread>
#include <QTcpServer>
#include "ftpsessionworker.h"
#include "serverconfig.h"

class FtpSession : public QThread
{
    Q_OBJECT
public:
    explicit FtpSession(qintptr socketDescriptor, const ServerConfig &serverConfig,
                        QObject *parent = nullptr);
    ~FtpSession();

public slots:
    void onQuit();

private:
    FtpSessionWorker *m_worker;
};

#endif // FTPSESSION_H
